package swu.cx.recyclerviewtest

import kotlin.random.Random

class LocalUtil:Factory {
    override fun generateDatas(): List<datas> {
        val rawDatas = mutableListOf<datas>()
        val descriptions = arrayOf(
            "爱情就是无底洞，让你无法挣扎，直至死亡",
            "初次见面时，就已经确认过眼神，你就是我的唯一",
            "为什么总会痛苦，总会挣扎，想到你，血压便指数增长"
        )
        for (i in 1..15){
            when((1..3).random()){
                1->rawDatas.add(datas(R.drawable.img1,descriptions[0],name = "小姐姐1号"))
                2->rawDatas.add(datas(R.drawable.img2,descriptions[1],name = "小姐姐2号"))
                3->rawDatas.add(datas(R.drawable.img3,descriptions[2],name = "小姐姐3号"))
            }
        }
        return rawDatas.toList()
    }
}